##
## Makefile for  in /home/gueux_g/projet/minishell1-2017-gueux_g/bin
## 
## Made by gregory gueux
## Login   <gueux_g@epitech.net>
## 
## Started on  Wed Dec 12 18:13:10 2012 gregory gueux
## Last update Sat Jun 15 14:25:23 2013 julien genoud
##

CFLAGS  = -Iinclude/

LDFLAGS = lib/libmy.a

CC 	= gcc -g

RM 	= rm -f

NAME 	= mysh

SRC 	= bin/affichage.c		\
	  bin/aff_var.c			\
	  bin/after_backslash.c		\
	  bin/after_backslash_02.c	\
	  bin/assemblage.c		\
	  bin/basic.c			\
	  bin/bultin.c			\
	  bin/cmd_basic.c		\
	  bin/cmd_cd.c			\
	  bin/cmd_echo.c		\
	  bin/commande_env.c		\
	  bin/control_signal.c		\
	  bin/count_quotes.c		\
	  bin/cpy_env.c			\
	  bin/cpyenv.c			\
	  bin/delete_return_line.c	\
	  bin/epur_str.c		\
	  bin/gere_afterbackslash.c	\
	  bin/gere_charact.c		\
	  bin/main.c			\
	  bin/my_memset.c		\
	  bin/my_putstr_echo.c		\
	  bin/my_str_to_quotetab.c	\
	  bin/my_str_to_wordtab.c	\
	  bin/path.c			\
	  bin/setenv_function.c		\
	  bin/suppr_space_begin.c	\
	  bin/true_str.c		\
	  bin/utilis.c			\
	  bin/verify_var.c		\

OBJS	= $(SRC:.c=.o)

$(NAME) : $(OBJS)
	make -C src/
	$(CC) $(OBJS) -o $(NAME) $(LDFLAGS)


all : $(NAME)

clean :
	$(RM) $(OBJS)

fclean : clean
	$(RM) $(NAME)

re : fclean all

.PHONY:	all clean fclean re